package com.nine.news.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nine.news.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * (User)表数据库访问层
 *
 * @author makejava
 * @since 2023-03-18 14:05:09
 */
public interface UserMapper extends BaseMapper<User> {

    @Update("update t_user_logon set password = #{password},update_time=now() where phone = #{phone}")
    public int updatePass(@Param("password") String password,@Param("phone") String phone);
}

